<?php

namespace App\Admin\Pages;

use App\Models\LiveRoom;
use Illuminate\Contracts\Support\Renderable;

class LiveInfo implements Renderable
{
    protected $id;

    public function __construct($data)
    {
        $this->id = $data;
    }

    public function render()
    {
        $data = LiveRoom::where('id',$this->id)->first();
        return admin_view('admin.live.live_info',compact('data'));
    }
}
